package cn.hl.hm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.hl.hm.dao.FeedBackMapper;
import cn.hl.hm.dao.FeedBackReplyMapper;
import cn.hl.hm.entity.FeedBack;
import cn.hl.hm.entity.FeedBackReply;
import cn.hl.hm.service.FeedbackService;
@Service
public class FeedbackServiceImpl implements FeedbackService{
	@Autowired
	private FeedBackMapper feedBackMapper;
	@Autowired
	private FeedBackReplyMapper replyMapper;
	@Override
	public int add(FeedBack fb) {
		return feedBackMapper.insertSelective(fb);
	}

	@Override
	public List<FeedBack> selectFeedBack(FeedBack fb) {
		return feedBackMapper.selectFeedback(fb);
	}

	@Override
	public int addReply(FeedBackReply fb) {
		return replyMapper.insertSelective(fb);
	}

	@Override
	public List<FeedBackReply> selectFeedBackReply(FeedBackReply fb) {
		// TODO Auto-generated method stub
		return replyMapper.selectReply(fb);
	}
	

}
